package com.leeon.generics;

class Friut{}
class Apple extends Friut{}
class Jonathan extends Apple{}
class Orange extends Friut{}

public class CovariantArrays {

	public static void main(String[] args){
		Friut[] friuts = new Apple[10];
		friuts[0] = new Apple();
		friuts[1] = new Jonathan();
		try {
			friuts[2] = new Friut();
		} catch (Exception e) {
			System.out.println(e);
		}
		try {
			friuts[3] = new Orange();
		} catch (Exception e) {
			System.out.println(e);
		}
	}
	
}
